{{include file="header_inc.html"}}

<div class="subnav">
	<div class="content-menu ib-a blue line-x">
		<a href='javascript:;' class="on"><em>角色管理</em></a><span>|</span><a
			href='/setting/rolemanage/add/'><em>添加角色</em></a>
	</div>

</div>
<div class="table-list pad-lr-10">
	<form name="myform" action="/setting/rolemanage/listorder/"
		method="post">
		<table width="100%" cellspacing="0">
			<thead>
				<tr>
					<th width="10%">排序</th>
					<th width="10%">ID</th>
					<th width="15%" align="left">角色名称</th>

					<th width="265" align="left">角色描述</th>
					<th width="5%" align="left">状态</th>
					<th class="text-c">管理操作</th>
				</tr>
			</thead>
			<tbody>
				{{foreach item=content from=$role_list}}
				<tr>
					<td width="10%" align="center"><input
						name='listorders[{{$content.roleid}}]' type='text' size='3'
						value='{{$content.listorder}}' class="input-text-c"></td>
					<td width="10%" align="center">{{$content.roleid}}</td>
					<td width="15%">{{$content.rolename}}</td>
					<td width="265">{{$content.description}}</td>
					<td width="5%"><a
						href="/setting/rolemanage/ChangeStatus/roleid/{{$content.roleid}}/disabled/{{if $content.disabled==0}}1{{else}}0{{/if}}/">
							{{if $content.disabled==0}} <font color="red">√</font> {{else}} <font
							color="blue">×</font> {{/if}}
					</a></td>
					<td class="text-c"><a
						href="javascript:setting_role({{$content.roleid}}, '{{$content.rolename}}')">权限设置</a>
						| <a href="javascript:void(0)"
						onclick="setting_cat_priv({{$content.roleid}}, '{{$content.rolename}}')">栏目权限</a>
						| <a
						href="/setting/rolemanage/member_manage/roleid/{{$content.roleid}}/">成员管理</a>
						| <a href="/setting/rolemanage/edit/roleid/{{$content.roleid}}/">修改</a>
						| <a
						href="javascript:confirmurl('/setting/rolemanage/delete/roleid/{{$content.roleid}}/', '是否删除?')">删除</a>
					</td>
				</tr>
				{{/foreach}}
			</tbody>
		</table>
		<div class="btn">
			<input type="submit" class="button" name="dosubmit" value="排序" />
		</div>
	</form>
</div>
<script type="text/javascript">
function setting_role(id, name) {

	window.top.art.dialog({title:'设置《'+name+'》',id:'edit',iframe:'/setting/rolemanage/priv_setting/roleid/'+id+'/',width:'700',height:'500'});
}

function setting_cat_priv(id, name) {

	window.top.art.dialog({title:'栏目权限《'+name+'》',id:'edit',iframe:'/setting/rolemanage/setting_cat_priv/roleid/'+id+'/',width:'700',height:'500'});
}
</script>
</body>
{{include file="footer.html"}}
